package dao.impl;

import dao.EnterpriseDao;
import entry.Enterprise;
import util.DBHelper;

import java.util.ArrayList;

public class EnterpriseDaoImpl implements EnterpriseDao {
    DBHelper db=new DBHelper();

    /**
     * selectAllEnterprise 查询全部企业信息
     *
     * @return ArrayList<Enterprise> 全部企业信息列表
     * @author 闫东杰
     */
    @Override
    public ArrayList<Enterprise> selectAllEnterprise() {
        String sql="select * from enterprise ";
        return db.select(sql,Enterprise.class);
    }
}
